<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>

<jsp:useBean id="nowDate" class="java.util.Date" />
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>销售订单编辑</title>
	<!-- import css and js --> 
	<%@ include file="/common/metaInput.jsp" %>  
	<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
	<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
var basic_Url="${ctx}/logic/sales";
var basic_FileUrl = "${ctx}/attach/upload";
var grid;
$(function(){
	
	//表格结构
	grid = $("#table1").ligerGrid({
        columns: [{ display: 'ID', name: 'id', width: 1 , hide:true},
                  { display: '产品id', name: 'zd006MaterialsId', width: 1 , hide:true},//使用selecturl时必须设置该属性
                  { display: '<font color="gray">产品编码</font>', name: 'zd007MaterialsCode',  width: 100},
				  { display: '<font color="gray">产品名称</font>', name: 'zd008MaterialsName', width: 100 },
				  { display: '产品型号<font color="red">*</font>', name: 'zd010MaterialsModel', width: 100,editor: { type: 'text'}},
				  { display: '产品尺寸<font color="red">*</font>', name: 'zd038MaterialsSize', width: 100,editor: { type: 'text'}},
				  { display: '产品颜色<font color="red">*</font>', name: 'zd041MaterialsColor', width: 60,editor: { type: 'text'}},
				  { display: '产品材质<font color="red">*</font>', name: 'zd042MaterialsQuality', width: 60,editor: { type: 'text'}},
				  { display: '计量单位<font color="red">*</font>', name: 'zd012MaterialsUnit', width: 60,editor: { type: 'text'}},
				  { display: '数量<font color="red">*</font>', name: 'zd013Quantity', width: 80 ,editor:{type: 'float'}, render: function (item){
	             		 if(item.zd013Quantity==null||item.zd013Quantity==""||item.zd013Quantity==0){
	             			grid.updateCell('zd028SumMoney', "", item);
	            			 return "";
	            		 }else{
	            			 if(item.zd017Price==null||item.zd017Price==""||item.zd017Price==0){
	            				 return item.zd013Quantity;
	            			 }else{
		            			grid.updateCell('zd028SumMoney', (item.zd017Price*item.zd013Quantity).toFixed(4), item);
	            				 return item.zd013Quantity;
	            			 }
	            		 }
	              	  }},
				  { display: '单价', name: 'zd017Price', width: 80, editor:{type: 'float'}, render: function (item){
             		 if(item.zd017Price==null||item.zd017Price==''||item.zd017Price==0){
             			grid.updateCell('zd028SumMoney', "", item);
            			 return "";
            		 }else{
            			 if(item.zd013Quantity==null||item.zd013Quantity==""||item.zd013Quantity==0){
            				 return item.zd017Price;
            			 }else{
	            			 grid.updateCell('zd028SumMoney', (item.zd017Price*item.zd013Quantity).toFixed(4), item);
            				 return item.zd017Price;
            			 }
            		 }
              	  }},
				  
				  { display: '金额', name: 'zd028SumMoney', width: 110, type: 'float'},
                  { display: '产品描述', name: 'zd036MaterialsDescription', width: 150
                  		,editor: { type: 'text'}
                  }
                  ],
                  enabledEdit: true,
                  usePager: true,pageSize:1000,pageSizeOptions:[1000],
                  parms:[{ name : 'id' , value : '${sales.id}'}],
                  url : basic_Url+"/griditems.do",
                  width: "100%", height:'90%', checkbox: true,
                  toolbar: { items: [
                                     { text: '添加物料', click: ItemWindow, icon: 'add' },
                                     { line: true },
                                     { text: '复制', click: addRow,icon: 'add'},
                                     { line:true},
                                     { text: '删除', click: deleteRow, img: '${ctx}/js/ligerUI/skins/icons/delete.gif' }
                                     ]
                           }
     });
	
	//表单提交触发
	$("#inputForm").validate({			   
	onsubmit: true,
	 /*执行ajaxsubmit  */ 
    submitHandler: function(editform) {
        try{			    		
            url =  basic_Url+"/save.do";
            var api = frameElement.api;
        	var W = api.opener;
            getReturnMessage(url,"inputForm",W.searchAP);
        }catch(e){alert(e);}
    }
	});
	//页面加载标识隐藏
	$("#pageloading").hide();
	    
	//页面按钮按状态操作
	$("#btn_fb_save").hide();//页面按钮默认隐藏
	$("#btn_fb_submit").hide();
	$("#btn_fb_cwrove").hide();
	$("#btn_fb_scrove").hide();
	$("#btn_fb_end").hide();
	var type="${type}";//页面状态0销售订单1财务审核2生产审核
	var state="${sales.zd024Billstatus}";//表单状态0草稿1待财务审核2待生产审核
	if(type==null||type==0){
		if(state=="PCSR_SAVE"||state=="PCSR_BACK"||state==null||state==""){
			$("#btn_fb_save").show();
			$("#btn_fb_submit").show();
		}
	}
	if(type==1){
		if(state=="PCSR_SUBMIT"){
			$("#btn_fb_cwrove").show();
			$("#btn_fb_end").show();
		}
		if(state=="PCSR_AUDIT"){
			$("#btn_fb_end").show();
		}
	}
	if(type==2){
		if(state=="PCSR_AUDIT"){
			$("#btn_fb_scrove").show();
			$("#btn_fb_end").show();
		}
		if(state=="PCSR_APPROVE"){
			$("#btn_fb_end").show();
		}
	}
	
	$("#zd002PiCode").change(function(){
		var piCode = $("#zd002PiCode").val();
		if(piCode==null||piCode==''){
			return;
		}
		$.ajax({
			url:"${ctx}/logic/sales/getCustomer.do",
			global: false,
			type:"POST",
			dataType:"json",
			data:({"picode":piCode}),		     
  		    success: function(msg){
  		    	if(msg.msg=="success"){
					$("#zd004CustomerId").val(msg.customerId);
					$("#zd006CustomerName").val(msg.customerName);
					$("#zd005CustomerCode").val(msg.customerCode);
  		    		$.dialog.alert("此PI已存在，请确认客户是否正确");
				}else{
					$("#zd004CustomerID").val("");
					$("#zd006CustomerName").val("");
					$("#zd005CustomerCode").val("");
					if(msg.msg==0){
						return;
					}else{
						$.dialog.alert("PI号出现重复，请检查确认后重新出入");
					}
				}
  		    }
  	    });		
	});
});

	//物料列表
	function ItemWindow() {
		getDG().dialog(
				{
					title : '选择产品',
					width : 650,
					height : 350,
					content : 'url:' + sys_context
							+ '/public/windowalert/cpitem.do',    //查询所有物料，不区分成品和原材料  
					lock : true,
					max : true,
					min : true,
					ok : function() {
						var getSelectedHub = this.content.getSelected();
						var manager = $("#table1").ligerGetGridManager();
						//alert(JSON.stringify(getSelectedHub));
						if (getSelectedHub != null) {
							$(getSelectedHub).each(function() {
								manager.addRow2({
									zd008MaterialsName : this.zd002Name,
									zd010MaterialsModel : this.zd004Model,
									zd012MaterialsUnit : this.basicStapleUnitDO.zd002Name,
									zd006MaterialsId: this.id,//物料ID
									zd041MaterialsColor : this.zd033Color,
									zd036MaterialsDescription:this.zd006Description,
									zd042MaterialsQuality:this.zd034Quality,
									zd038MaterialsSize:this.zd026Size,
									zd007MaterialsCode:this.zd001Code
								});
							});
						}
						this.content.Close();
						return false;
					},
					cancelVal : '关闭',
					cancel : true
				}).zindex();
	}
	
	//客户列表
	function CompanyWindow() {
		getDG().dialog(
				{
					title : '选择客户',
					width : 650,
					height : 350,
					content : 'url:' + sys_context + '/public/windowalert/company.do?zdType='+'cust',    
					lock : true,
					max : true,
					min : true,
					ok : function() {
						var rows = this.content.getSelected();
						if(rows==null){
							$.dialog.alert("请选择数据");
							return;
						}else{
							if(rows.length>1){
								$.dialog.alert("只能选择一行数据!");
								return;
							}else{
								$(rows).each(function() {
									$("#zd004CustomerId").val(this.id);
									$("#zd005CustomerCode").val(this.zd001Code);
									$("#zd006CustomerName").val(this.zd003ZhName);
								});
							}
						}
						this.content.Close();
						return false;
					},
					cancelVal : '关闭',
					cancel : true
				}).zindex();
	}
	
	//业务员列表
	function ClerkWindow() {
		getDG().dialog(
				{
					title : '选择业务员',
					width : 650,
					height : 350,
					content : 'url:' + sys_context
							+ '/public/windowalert/clerk.do',    //查询所有物料，不区分成品和原材料  
					lock : true,
					max : true,
					min : true,
					ok : function() {
						var rows = this.content.getSelected();
						if(rows==null){
							$.dialog.alert("请选择数据");
							return;
						}else{
							if(rows.length>1){
								$.dialog.alert("只能选择一行数据");
								return;
							}else{
								$(rows).each(function() {
									$("#zd022SalesMan").val(this.zd003ZhName);
								});
							}
						}
						this.content.Close();
						return false;
					},
					cancelVal : '关闭',
					cancel : true
				}).zindex();
	}
	
	//币种列表
	function CurrencyWindow() {
		getDG().dialog(
				{
					title : '选择币种',
					width : 650,
					height : 350,
					content : 'url:' + sys_context
							+ '/public/windowalert/currency.do',    //查询所有物料，不区分成品和原材料  
					lock : true,
					max : true,
					min : true,
					ok : function() {
						var rows = this.content.getSelected();
						if(rows==null){
							$.dialog.alert("请选择数据");
							return;
						}else{
							if(rows.length>1){
								$.dialog.alert("只能选择一行数据!");
								return;
							}else{
								$(rows).each(function() {
									$("#zd014CurrencyName").val(this.zd001CurrencyName);
									$("#zd014CurrencyCode").val(this.zd002CurrencyCode);
									$("#zd015ExchangeRate").val(this.zd003CurrencyRate);
								});
							}
						}
						this.content.Close();
						return false;
					},
					cancelVal : '关闭',
					cancel : true
				}).zindex();
	}
	
	//表单提交触发
	function submitForm(param) {
		//设置ajax全局同步
		$("#paramflag").val(param);
		var data = grid.getData();
		var arr=new Array();
		for(var i = 0 ; i<data.length ; i++){
			var row = data[i];
			var key=$.trim(row.zd007MaterialsCode)+"_"+
					$.trim(row.zd008MaterialsName)+"_"+
					$.trim(row.zd010MaterialsModel)+"_"+
					$.trim(row.zd038MaterialsSize)+"_"+
					$.trim(row.zd041MaterialsColor)+"_"+
					$.trim(row.zd042MaterialsQuality);
			for(var j = 0 ; j<arr.length ; j++){
				if(arr[j]==key){
					$.dialog.alert("您的第"+(j+1)+"条数据和第"+(i+1)+"条数据相同,请确认!!!!");
					ba = false;
					return false;
				}
			}
			arr.push(key);
		}
		
		
		
		var dl = grid.getDeleted();
		if (data.length == 0) {
			$.dialog.alert("您没有选择销售订单具体产品，无法操作！");
			return false;
		}
		
		var ba = true;
		if (data != null) {
			var j = 0;
			if (param == "PCSR_SAVE" || param == "PCSR_SUBMIT"){//指向状态
				
				$(data).each(function() {
						j++;
						/* if (undefined == this.zd017Price
								|| isNaN(this.zd017Price)
								|| this.zd017Price <= 0) {
							$.dialog.alert("第" + j + "行的“单价”数据不合法");
							ba = false;
							return false;
						} */
						
						if (undefined == this.zd013Quantity
								|| isNaN(this.zd013Quantity)
								|| this.zd013Quantity <= 0) {
							$.dialog.alert("第" + j + "行的“数量”数据不合法");
							ba = false;
							return false;
						}
						
					/* 	if (undefined == this.zd028SumMoney
								|| isNaN(this.zd028SumMoney)
								|| this.zd028SumMoney <= 0) {
							$.dialog.alert("第" + j + "行的“金额”数据不合法");
							ba = false;
							return false;
						} */
				});
			 }
		}
		
		
		
		jQuery.ajaxSettings.async = false;
		if (ba) {
			//
			var i=0;
			$(data).each(function(){
				this.zd043Order=i;
				i++;
			});
			$("#itemdata").val(JSON.stringify(data));
			$("#itemdelete").val(JSON.stringify(dl));
			$("#submitFlag").val(param);
			$("#inputForm").submit();
		}
	}
	
	function tableSubmit(msg,param){
		$.ligerDialog.confirm(msg, 
				function (flag) { 
				if(flag){
					submitForm(param);
				}
			}); 
	}
	
	function submitFormClose(param){
		tableSubmit('是否确认关闭单据操作？',param);
	}
	
	function submitFormEnd(param){
		tableSubmit('是否确认审批操作？',param);
	}
	
	function submitFormRebut(param){
		tableSubmit('是否确认驳回操作？',param);
	}
	

	function deleteRow() {
		grid.deleteSelectedRow();
	}

	/**
	 * 导出
	 */
	function exportExcel() {
		var path = basic_Url + "/exportExcel.do?id=${so.id}";
		window.open(path, "_blank");
	}
	
	//下载附件
	function downUploadFile(index,diskPath){
		//alert(diskPath);
		//alert(index);
		var fileName = $("#fileName_"+index).val();
		//alert(fileName);
		var path = basic_FileUrl + "/filedown.do?diskPath="+diskPath+"&fileName="+fileName;
		//alert(path);
		window.open(path, "_blank");
	}
	//删除附件
	function deleteFile(index){
		var attachId = $("#fileId_"+index).val();
		//alert(attachId);
		if(attachId!=''){
			$.ajax({
    		      url: basic_FileUrl+"/deleteFile.do",
    		      global: false,
    		      type: "POST",
    		      dataType: "json",
    		      data: ({
    		    	  attachFileId : attachId
    		      }),    
    		      success: function(o){
    		    	  var isDel = o.isDel;
    		    	  if('yes'==isDel){
    		    		  //删除数据
    		    	  }
    		    	  if('no'==isDel){
    		    		  //表示不操作
    		    	  }
    		    	/* if(undefined != o && undefined != o.bean && null != o.bean){
    		    		$("#cliName").val(o.bean.name);
    		    		$("#cliAddr").val(o.bean.address);
    		    		$("#cliPeo").val(o.bean.attachperson);
    		    		$("#cliTel").val(o.bean.telephone);
    		    		$("#cliFax").val(o.bean.fax);
    		    	}else{
    		    		alert("返回对象为空");
    		    	}*/
    		      } 
    	   });
		}
	}
	function addRow(){
		var data=grid.getSelectedRows();
		if(data.length==0){
			$.dialog.alert("请选择需要复制的数据");
			return false;
		}
		$(data).each(function(){
			grid.addRow({
				zd006MaterialsId:this.zd006MaterialsId,//物品id
				zd007MaterialsCode:this.zd007MaterialsCode,//物品编码
				zd008MaterialsName:this.zd008MaterialsName,//物品名称
				zd010MaterialsModel:this.zd010MaterialsModel,//型号
				zd038MaterialsSize:this.zd038MaterialsSize,//尺寸
				zd041MaterialsColor:this.zd041MaterialsColor,//颜色
				zd042MaterialsQuality:this.zd042MaterialsQuality,//材质
				zd012MaterialsUnit:this.zd012MaterialsUnit,//单位
				zd036MaterialsDescription:this.zd036MaterialsDescription//描述
			});
		});
	}
	//zd012PiCode
	//zd012PiCode改变
	function changePiCode(){
		
	}
	
</script>

</head>

<body>

<form id="inputForm" action="" method="post">
<input type="hidden" id="id" name="id" value="${sales.id}"/>
<input type="hidden" id="bizVersion" name="bizVersion" value="${sales.bizVersion}"/>
<input type="hidden" id="itemdata" name="itemdata" value=""/>
<input type="hidden" id="itemdelete" name="itemdelete" value=""/>
<input type="hidden" id="paramflag" name="paramflag" value=""/>
<!-- 用于标识提交按钮 -->
<input type="hidden" id="submitFlag" name="submitFlag" value="" />
 <div class="pageContent" >
    <div class="panel">
         <table class="TableBlock" align="center">
   		            <tr>
	   		            <c:if test="${not empty sales.zd001FormCode}">
	                   		<td nowrap="nowrap" width="20%">销售订单编号:</td>
	   		                <td>
	   		                	<input type="text" style="width:200px;" id="zd001FormCode" name="zd001FormCode" value="${sales.zd001FormCode}"  readonly="readonly"/>
	   		                </td>
	   		            </c:if>
   		            	<c:choose>
   		            		<c:when test="${not empty sales.zd001FormCode }">
   		            			<td nowrap="nowrap" width="20%">销售类型:</td>
		   		                <td>
		   		                	<input type="radio" id="zd026WithSingle" name="zd026WithSingle" value="1" <c:if test="${sales.zd026WithSingle==1||sales.zd026WithSingle==null}"> checked="checked"</c:if>/>普通&nbsp;
		              				<input type="radio" id="zd026WithSingle" name="zd026WithSingle" value="0" <c:if test="${sales.zd026WithSingle==0}"> checked="checked"</c:if>/>加单&nbsp;
		              			</td>
   		            		</c:when>
   		            		<c:otherwise>
   		            			<td nowrap="nowrap" width="20%">销售类型:</td>
		   		                <td colspan="3">
		   		                	<input type="radio" id="zd026WithSingle" name="zd026WithSingle" value="1" <c:if test="${sales.zd026WithSingle==1||sales.zd026WithSingle==null}"> checked="checked"</c:if>/>普通&nbsp;
		              				<input type="radio" id="zd026WithSingle" name="zd026WithSingle" value="0" <c:if test="${sales.zd026WithSingle==0}"> checked="checked"</c:if>/>加单&nbsp;
		              			</td>
   		            		</c:otherwise>
   		            	</c:choose>
   		            </tr>
   		           <tr>
   		           		<td nowrap="nowrap" width="20%">PI编号:</td>
   		                <td>
   		                	<input type="text" style="width:200px;" id="zd002PiCode" name="zd002PiCode" onchange="changePiCode()" value="${sales.zd002PiCode}" class="inp_width_98p"/>
   		                </td>
                   		<td nowrap="nowrap" width="20%">产品类型:</td>
   		                <td>
   		                	<select id="zd028SaleType" name="zd028SaleType" class="required inp_width_98p">
   		                		<option></option>
   		                		<option value="BT">套床</option>
   		                		<option value="MT">床垫</option>
   		                	</select>
   		                	<script type="text/javascript">
   		                		$("#zd028SaleType").val('${sales.zd028SaleType}');
   		                	</script>
   		                 </td>
   		           </tr>
   		           <tr>
   		            	<td nowrap="nowrap">客户编号:</td>
   		           		<td>
   		           			<input type="hidden" id="zd004CustomerId" name="zd004CustomerId" class="required" readonly="readonly" style="width: 40%;" value="${sales.zd004CustomerId}" />
   		           			<input type="text" style="width:200px;" id="zd005CustomerCode" name="zd005CustomerCode" value="${sales.zd005CustomerCode}" readonly="readonly" class=" required" />
   		           			<input type="button" value="..." onclick="CompanyWindow();" />
   		           		</td>
   		           		<td nowrap="nowrap">客户名称:</td>
   		           		<td>
   		                 <input type="text" style="width:200px;" id="zd006CustomerName" readonly="readonly" name="zd006CustomerName" value="${sales.zd006CustomerName}" class="required"></input>
   		                 </td>
   		           		
   		           </tr>
   		           <tr>
   		           		<td nowrap="nowrap">建单时间:</td>
   		           		<td><input type="text" style="width:200px;" id="bizCreatorDate" name="bizCreatorDate" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" value="<fmt:formatDate value="${sales.bizCreatorDate}" pattern="yyyy-MM-dd" type="both" />"  readonly="readonly"></input></td>
   		           		<td nowrap="nowrap">交货时间:</td>
   		           		<td><input type="text" style="width:200px;" id="zd017DeliveryDate" name="zd017DeliveryDate" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" value="<fmt:formatDate value="${sales.zd017DeliveryDate}" pattern="yyyy-MM-dd" type="both" />"  readonly="readonly"></input></td>
   		           </tr>
   		           <tr>
   		            	<td nowrap="nowrap">币种:</td>
   		           		<td><input type="text" style="width:200px;" id="zd014CurrencyName" name="zd014CurrencyName" value="${sales.zd014CurrencyName}" readonly="readonly"></input>
   		           		<input type="hidden" id="zd014CurrencyCode" name="zd014CurrencyCode" value="${sales.zd014CurrencyCode}"></input>
   		           		<input type="button" value="..." onclick="CurrencyWindow();" />
   		           		</td>
   		           		<td nowrap="nowrap">汇率:</td>
   		           		<td>
   		                 <input type="text" style="width:200px;" id="zd015ExchangeRate" readonly="readonly" name="zd015ExchangeRate" value="${sales.zd015ExchangeRate}"></input>
   		                 </td>
   		           		
   		           </tr>
   		           <tr>
   		           		<td nowrap="nowrap">业务员:</td>
   		           		<td><input type="text" style="width:200px;" readonly="readonly" id="zd022SalesMan" name="zd022SalesMan" value="${sales.zd022SalesMan}" class="required"></input>
   		           			<input type="button" value="..." onclick="ClerkWindow();" />
   		           		</td>
                    	<td nowrap="nowrap">备注:</td>
   		                <td>
   		                	<input type="text" id="zd023Remark" style="width:98%" name="zd023Remark" value="${sales.zd023Remark}" />
   		                </td>
   		           </tr>
   		           <tr>
   		           		<td>附件</td>
   		           		<td>
   		           			<input type="file" id="filePath" name="filePath" value="" />
   		           		</td>
   		           		<td colspan="3">
   		           			<c:forEach items="${upFiles }" var="varF" varStatus="varSt">
   		           				<input type="hidden" id="fileId_${varSt.index }" value="${varF.id }"/>
   		           				<input type="hidden" id="fileName_${varSt.index }" value="${varF.fileName }"/>
   		           				<a class="add" onclick="downUploadFile('${varSt.index }','${varF.diskPath}')"><span>${varF.fileName }</span><span></span></a>
   		           				<c:if test="${sales.zd024Billstatus==null||sales.zd024Billstatus==''||sales.zd024Billstatus=='PCSR_SAVE'||sales.zd024Billstatus=='PCSR_BACK'}">	
   		           					<a class="add" onclick="deleteFile('${varSt.index }')">删除</a>
   		           				</c:if>
   		           			</c:forEach>
   		           		</td>
					</tr>
                </table>
                <div id="table1"> </div>               
         </div>
         <div class="formBar">
	        <ul>
	         	<li><div class="buttonActive"><div class="buttonContent"><button type="button" id="btn_fb_save" onclick="submitForm('PCSR_SAVE')">保存</button></div></div></li>
		        <li><div class="buttonActive"><div class="buttonContent"><button type="button" id="btn_fb_submit" onclick="submitForm('PCSR_SUBMIT')" title="提交财务审核">提交</button></div></div></li>
		      	<webres:displaycontroller elementId="LOGIC_SO_CWSEHNHE" description="销售订单财务审核">
		      	<li><div class="buttonActive"><div class="buttonContent"><button type="button" id="btn_fb_cwrove" onclick="submitFormEnd('PCSR_AUDIT')" title="财务审核">财务审核</button></div></div></li>
		      	</webres:displaycontroller>
		      	<webres:displaycontroller elementId="LOGIC_SO_SCSEHNHE" description="销售订单生产审核">
		      	<li><div class="buttonActive"><div class="buttonContent"><button type="button" id="btn_fb_scrove" onclick="submitFormEnd('PCSR_APPROVE')" title="生产审核">生产审核</button></div></div></li>
		      	</webres:displaycontroller>
		      	<webres:displaycontroller elementId="LOGIC_SO_BOHUI" description="销售订单驳回">
		      	<li><div class="button"><div class="buttonContent"><button type="button" id="btn_fb_end" onclick="submitFormRebut('PCSR_BACK')" title="财务驳回到草稿">驳回</button></div></div></li>
		      	</webres:displaycontroller>
		      <!-- 	<li><div class="button"><div class="buttonContent"><button type="button" id="btn_fb_exportExcel" class="export" onclick="exportExcel()">导出</button></div></div> </li> -->
		       <li><div class="button"><div class="buttonContent"><button type="button" onclick="CloseDialog()">关闭</button></div></div></li>
	        </ul>
        </div>    
    </div>
</form>
</body>
</html>
